<template>
  <div id="app">
    <div v-if="this.noNav.indexOf(this.$route.name) >= 0">
      <router-view></router-view>
    </div>
    <el-container v-else>
      <el-header height="50px" class="bg-dark c-gray">
        <router-view name="nav"></router-view>
      </el-header>
      <router-view></router-view>
    </el-container>
  </div>
</template>

<script>
  export default {
    name: 'App',
    data() {
      return {
        noNav: ["login"]
      }
    },
    beforeCreate(){
    },
    created() {
    },
    beforeDestroy(){
    }
  }
</script>
<style>
</style>
